package com.jkc.xh.models;

/**
 * Created by zhangbreeze on 15/11/17.
 */
public class BussinessModel {
    public String lid;
    public String stock_code;
    public String stock_name;
    public int entrust_bs;
    public String business_time;
    public String business_price;
    public String business_amount;
    public String business_balance;


    /**
     * 获取买卖状态
     *
     * @return
     */
    public String getEntrustStatusText() {
        if (entrust_bs == 1) {
            return "买入";
        } else {
            return "卖出";
        }
    }
    /*
           {
                "lid" : "LID",
                "stock_code" : "证券代码",
                "stock_name" : "名称",
                "entrust_bs" : "方向，1=买，2=卖",
                "business_time" : "成交时间",
                "business_price" : "成交价格",
                "business_amount" : "成交数量",
                "business_balance" : "成交金额"
            }
    *
    * */
}
